package org.jeecg.modules.demo.hd.service.impl;

import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import org.jeecg.modules.demo.hd.entity.AppYinsixieyi;
import org.jeecg.modules.demo.hd.entity.AppYonghuxieyi;
import org.jeecg.modules.demo.hd.mapper.AppYonghuxieyiMapper;
import org.jeecg.modules.demo.hd.service.IAppYonghuxieyiService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: app_yonghuxieyi
 * @Author: jeecg-boot
 * @Date:   2025-02-09
 * @Version: V1.0
 */
@Service
public class AppYonghuxieyiServiceImpl extends ServiceImpl<AppYonghuxieyiMapper, AppYonghuxieyi> implements IAppYonghuxieyiService {

    @Override
    public String queryOne() {
        List<AppYonghuxieyi> list = this.baseMapper.selectList(null);
        if(ObjectUtils.isNotNull(list)&& list.size()>0)
        {
            return  list.get(0).getDescription();
        }
        return "";
    }
}
